#include<iostream>
#include<string>
#include"Searcher.hpp"

const std::string input="./raw_html/raw.txt";

int main()
{
    ns_searcher::Searcher *search=new ns_searcher::Searcher();

    search->InitSearcher(input);

    std::string query;
    std::string json_string;

    while(true)
    {
        std::cout<<"pleace Enter You Seacher Query: ";
        std::cin>>query;

        search->Search(query,&json_string);

        std::cout<<json_string<<std::endl;
    }
    return 0;
}